package falcon.common;

public final class Errno {
	
	public static final int SUCCESS = 0;
	// linux errno 1 - 255
	public static final int _OPERATION_NOT_PERMITTED = 1;
	public static final int _NO_SUCH_FILE_OR_DIRECTORY = 2;
	public static final int _NO_SUCH_PROCESS = 3;
	public static final int _INTERRUPTED_SYSTEM_CALL = 4;
	public static final int _INPUT_OUTPUT_ERROR = 5;
	public static final int _PERMISSION_DENIED = 13;
	public static final int _FILE_EXISTS = 17;
	public static final int _INVALID_ARGUMENT = 22;
	public static final int _NO_DATA_AVAILABLE = 61;
	public static final int _VALUE_TOO_LARGE_FOR_DEFINED_DATA_TYPE = 75;
	
	// common errno 256 - 399
	public static final int COM_CATCH_EXCEPTION = 256;
	public static final int COM_NOT_FOUND = 257;
	public static final int COM_ARGS_MISS = 258;
	public static final int COM_ARGS_INVALID = 259;
	public static final int COM_ARGS_TOO_SHORT = 260;
	public static final int COM_ARGS_TOO_LONG = 261;
	public static final int COM_INIT_ERROR = 262;
	public static final int COM_READ_FILE_ERROR = 263;
	public static final int COM_WRITE_FILE_ERROR = 264;
	public static final int COM_EXISTS = 265;
	public static final int COM_UNKNOWN_ERROR = 266;
	
	// script errno 400 - 499
	public static final int SCRIPT_LEXICAL_ERROR = 400;
	public static final int SCRIPT_SYNTAX_ERROR = 402;
	public static final int SCRIPT_TRANSLATE_ERROR = 400;
	public static final int SCRIPT_TRANSLATE_NOT_PERMITTED = 401;
	
	// network errno 500 - 549
	public static final int NET_CONN_ERROR = 500;
	public static final int NET_CONN_TIMEOUT = 501;
	public static final int NET_SEND_ERROR = 502;
	public static final int NET_SEND_TIMEOUT = 503;
	public static final int NET_RECV_ERROR = 504;
	public static final int NET_RECV_TIMEOUT = 505;
	
	// protocol errno 550 - 599
	public static final int PROTOCOL_SUCH_CMD = 550;
	public static final int PROTOCOL_CMD_ERROR = 551;
	public static final int PROTOCOL_VERSION_ERROR = 552;
	public static final int PROTOCOL_ACTION_ERROR = 553;
	
	// verify errno 600 - 649
	public static final int VERIF_LOGOUT = 600;
	public static final int VERIF_NOT_LOGIN = 601;
	public static final int VERIF_REPEAT_LOGIN = 602;
	public static final int VERIF_HOST_FORBIDDEN = 603;
	public static final int VERIF_NO_SUCH_USER = 604;
	public static final int VERIF_PASSWORD_ERROR = 605;
	public static final int VERIF_PASSWORD_EMPTY = 606;
}
